package com.onedec.entity;

import java.util.ArrayList;
import java.util.List;

public class OnedecReceiptExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public OnedecReceiptExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andReceiptIdIsNull() {
            addCriterion("receipt_id is null");
            return (Criteria) this;
        }

        public Criteria andReceiptIdIsNotNull() {
            addCriterion("receipt_id is not null");
            return (Criteria) this;
        }

        public Criteria andReceiptIdEqualTo(Integer value) {
            addCriterion("receipt_id =", value, "receiptId");
            return (Criteria) this;
        }

        public Criteria andReceiptIdNotEqualTo(Integer value) {
            addCriterion("receipt_id <>", value, "receiptId");
            return (Criteria) this;
        }

        public Criteria andReceiptIdGreaterThan(Integer value) {
            addCriterion("receipt_id >", value, "receiptId");
            return (Criteria) this;
        }

        public Criteria andReceiptIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("receipt_id >=", value, "receiptId");
            return (Criteria) this;
        }

        public Criteria andReceiptIdLessThan(Integer value) {
            addCriterion("receipt_id <", value, "receiptId");
            return (Criteria) this;
        }

        public Criteria andReceiptIdLessThanOrEqualTo(Integer value) {
            addCriterion("receipt_id <=", value, "receiptId");
            return (Criteria) this;
        }

        public Criteria andReceiptIdIn(List<Integer> values) {
            addCriterion("receipt_id in", values, "receiptId");
            return (Criteria) this;
        }

        public Criteria andReceiptIdNotIn(List<Integer> values) {
            addCriterion("receipt_id not in", values, "receiptId");
            return (Criteria) this;
        }

        public Criteria andReceiptIdBetween(Integer value1, Integer value2) {
            addCriterion("receipt_id between", value1, value2, "receiptId");
            return (Criteria) this;
        }

        public Criteria andReceiptIdNotBetween(Integer value1, Integer value2) {
            addCriterion("receipt_id not between", value1, value2, "receiptId");
            return (Criteria) this;
        }

        public Criteria andReceiptRemarkIsNull() {
            addCriterion("receipt_remark is null");
            return (Criteria) this;
        }

        public Criteria andReceiptRemarkIsNotNull() {
            addCriterion("receipt_remark is not null");
            return (Criteria) this;
        }

        public Criteria andReceiptRemarkEqualTo(String value) {
            addCriterion("receipt_remark =", value, "receiptRemark");
            return (Criteria) this;
        }

        public Criteria andReceiptRemarkNotEqualTo(String value) {
            addCriterion("receipt_remark <>", value, "receiptRemark");
            return (Criteria) this;
        }

        public Criteria andReceiptRemarkGreaterThan(String value) {
            addCriterion("receipt_remark >", value, "receiptRemark");
            return (Criteria) this;
        }

        public Criteria andReceiptRemarkGreaterThanOrEqualTo(String value) {
            addCriterion("receipt_remark >=", value, "receiptRemark");
            return (Criteria) this;
        }

        public Criteria andReceiptRemarkLessThan(String value) {
            addCriterion("receipt_remark <", value, "receiptRemark");
            return (Criteria) this;
        }

        public Criteria andReceiptRemarkLessThanOrEqualTo(String value) {
            addCriterion("receipt_remark <=", value, "receiptRemark");
            return (Criteria) this;
        }

        public Criteria andReceiptRemarkLike(String value) {
            addCriterion("receipt_remark like", value, "receiptRemark");
            return (Criteria) this;
        }

        public Criteria andReceiptRemarkNotLike(String value) {
            addCriterion("receipt_remark not like", value, "receiptRemark");
            return (Criteria) this;
        }

        public Criteria andReceiptRemarkIn(List<String> values) {
            addCriterion("receipt_remark in", values, "receiptRemark");
            return (Criteria) this;
        }

        public Criteria andReceiptRemarkNotIn(List<String> values) {
            addCriterion("receipt_remark not in", values, "receiptRemark");
            return (Criteria) this;
        }

        public Criteria andReceiptRemarkBetween(String value1, String value2) {
            addCriterion("receipt_remark between", value1, value2, "receiptRemark");
            return (Criteria) this;
        }

        public Criteria andReceiptRemarkNotBetween(String value1, String value2) {
            addCriterion("receipt_remark not between", value1, value2, "receiptRemark");
            return (Criteria) this;
        }

        public Criteria andReceiptProjectIdIsNull() {
            addCriterion("receipt_project_id is null");
            return (Criteria) this;
        }

        public Criteria andReceiptProjectIdIsNotNull() {
            addCriterion("receipt_project_id is not null");
            return (Criteria) this;
        }

        public Criteria andReceiptProjectIdEqualTo(Integer value) {
            addCriterion("receipt_project_id =", value, "receiptProjectId");
            return (Criteria) this;
        }

        public Criteria andReceiptProjectIdNotEqualTo(Integer value) {
            addCriterion("receipt_project_id <>", value, "receiptProjectId");
            return (Criteria) this;
        }

        public Criteria andReceiptProjectIdGreaterThan(Integer value) {
            addCriterion("receipt_project_id >", value, "receiptProjectId");
            return (Criteria) this;
        }

        public Criteria andReceiptProjectIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("receipt_project_id >=", value, "receiptProjectId");
            return (Criteria) this;
        }

        public Criteria andReceiptProjectIdLessThan(Integer value) {
            addCriterion("receipt_project_id <", value, "receiptProjectId");
            return (Criteria) this;
        }

        public Criteria andReceiptProjectIdLessThanOrEqualTo(Integer value) {
            addCriterion("receipt_project_id <=", value, "receiptProjectId");
            return (Criteria) this;
        }

        public Criteria andReceiptProjectIdIn(List<Integer> values) {
            addCriterion("receipt_project_id in", values, "receiptProjectId");
            return (Criteria) this;
        }

        public Criteria andReceiptProjectIdNotIn(List<Integer> values) {
            addCriterion("receipt_project_id not in", values, "receiptProjectId");
            return (Criteria) this;
        }

        public Criteria andReceiptProjectIdBetween(Integer value1, Integer value2) {
            addCriterion("receipt_project_id between", value1, value2, "receiptProjectId");
            return (Criteria) this;
        }

        public Criteria andReceiptProjectIdNotBetween(Integer value1, Integer value2) {
            addCriterion("receipt_project_id not between", value1, value2, "receiptProjectId");
            return (Criteria) this;
        }

        public Criteria andReceiptOperationNumIsNull() {
            addCriterion("receipt_operation_num is null");
            return (Criteria) this;
        }

        public Criteria andReceiptOperationNumIsNotNull() {
            addCriterion("receipt_operation_num is not null");
            return (Criteria) this;
        }

        public Criteria andReceiptOperationNumEqualTo(Integer value) {
            addCriterion("receipt_operation_num =", value, "receiptOperationNum");
            return (Criteria) this;
        }

        public Criteria andReceiptOperationNumNotEqualTo(Integer value) {
            addCriterion("receipt_operation_num <>", value, "receiptOperationNum");
            return (Criteria) this;
        }

        public Criteria andReceiptOperationNumGreaterThan(Integer value) {
            addCriterion("receipt_operation_num >", value, "receiptOperationNum");
            return (Criteria) this;
        }

        public Criteria andReceiptOperationNumGreaterThanOrEqualTo(Integer value) {
            addCriterion("receipt_operation_num >=", value, "receiptOperationNum");
            return (Criteria) this;
        }

        public Criteria andReceiptOperationNumLessThan(Integer value) {
            addCriterion("receipt_operation_num <", value, "receiptOperationNum");
            return (Criteria) this;
        }

        public Criteria andReceiptOperationNumLessThanOrEqualTo(Integer value) {
            addCriterion("receipt_operation_num <=", value, "receiptOperationNum");
            return (Criteria) this;
        }

        public Criteria andReceiptOperationNumIn(List<Integer> values) {
            addCriterion("receipt_operation_num in", values, "receiptOperationNum");
            return (Criteria) this;
        }

        public Criteria andReceiptOperationNumNotIn(List<Integer> values) {
            addCriterion("receipt_operation_num not in", values, "receiptOperationNum");
            return (Criteria) this;
        }

        public Criteria andReceiptOperationNumBetween(Integer value1, Integer value2) {
            addCriterion("receipt_operation_num between", value1, value2, "receiptOperationNum");
            return (Criteria) this;
        }

        public Criteria andReceiptOperationNumNotBetween(Integer value1, Integer value2) {
            addCriterion("receipt_operation_num not between", value1, value2, "receiptOperationNum");
            return (Criteria) this;
        }

        public Criteria andReceiptReceipt1IsNull() {
            addCriterion("receipt_receipt1 is null");
            return (Criteria) this;
        }

        public Criteria andReceiptReceipt1IsNotNull() {
            addCriterion("receipt_receipt1 is not null");
            return (Criteria) this;
        }

        public Criteria andReceiptReceipt1EqualTo(String value) {
            addCriterion("receipt_receipt1 =", value, "receiptReceipt1");
            return (Criteria) this;
        }

        public Criteria andReceiptReceipt1NotEqualTo(String value) {
            addCriterion("receipt_receipt1 <>", value, "receiptReceipt1");
            return (Criteria) this;
        }

        public Criteria andReceiptReceipt1GreaterThan(String value) {
            addCriterion("receipt_receipt1 >", value, "receiptReceipt1");
            return (Criteria) this;
        }

        public Criteria andReceiptReceipt1GreaterThanOrEqualTo(String value) {
            addCriterion("receipt_receipt1 >=", value, "receiptReceipt1");
            return (Criteria) this;
        }

        public Criteria andReceiptReceipt1LessThan(String value) {
            addCriterion("receipt_receipt1 <", value, "receiptReceipt1");
            return (Criteria) this;
        }

        public Criteria andReceiptReceipt1LessThanOrEqualTo(String value) {
            addCriterion("receipt_receipt1 <=", value, "receiptReceipt1");
            return (Criteria) this;
        }

        public Criteria andReceiptReceipt1Like(String value) {
            addCriterion("receipt_receipt1 like", value, "receiptReceipt1");
            return (Criteria) this;
        }

        public Criteria andReceiptReceipt1NotLike(String value) {
            addCriterion("receipt_receipt1 not like", value, "receiptReceipt1");
            return (Criteria) this;
        }

        public Criteria andReceiptReceipt1In(List<String> values) {
            addCriterion("receipt_receipt1 in", values, "receiptReceipt1");
            return (Criteria) this;
        }

        public Criteria andReceiptReceipt1NotIn(List<String> values) {
            addCriterion("receipt_receipt1 not in", values, "receiptReceipt1");
            return (Criteria) this;
        }

        public Criteria andReceiptReceipt1Between(String value1, String value2) {
            addCriterion("receipt_receipt1 between", value1, value2, "receiptReceipt1");
            return (Criteria) this;
        }

        public Criteria andReceiptReceipt1NotBetween(String value1, String value2) {
            addCriterion("receipt_receipt1 not between", value1, value2, "receiptReceipt1");
            return (Criteria) this;
        }

        public Criteria andReceiptReceipt2IsNull() {
            addCriterion("receipt_receipt2 is null");
            return (Criteria) this;
        }

        public Criteria andReceiptReceipt2IsNotNull() {
            addCriterion("receipt_receipt2 is not null");
            return (Criteria) this;
        }

        public Criteria andReceiptReceipt2EqualTo(String value) {
            addCriterion("receipt_receipt2 =", value, "receiptReceipt2");
            return (Criteria) this;
        }

        public Criteria andReceiptReceipt2NotEqualTo(String value) {
            addCriterion("receipt_receipt2 <>", value, "receiptReceipt2");
            return (Criteria) this;
        }

        public Criteria andReceiptReceipt2GreaterThan(String value) {
            addCriterion("receipt_receipt2 >", value, "receiptReceipt2");
            return (Criteria) this;
        }

        public Criteria andReceiptReceipt2GreaterThanOrEqualTo(String value) {
            addCriterion("receipt_receipt2 >=", value, "receiptReceipt2");
            return (Criteria) this;
        }

        public Criteria andReceiptReceipt2LessThan(String value) {
            addCriterion("receipt_receipt2 <", value, "receiptReceipt2");
            return (Criteria) this;
        }

        public Criteria andReceiptReceipt2LessThanOrEqualTo(String value) {
            addCriterion("receipt_receipt2 <=", value, "receiptReceipt2");
            return (Criteria) this;
        }

        public Criteria andReceiptReceipt2Like(String value) {
            addCriterion("receipt_receipt2 like", value, "receiptReceipt2");
            return (Criteria) this;
        }

        public Criteria andReceiptReceipt2NotLike(String value) {
            addCriterion("receipt_receipt2 not like", value, "receiptReceipt2");
            return (Criteria) this;
        }

        public Criteria andReceiptReceipt2In(List<String> values) {
            addCriterion("receipt_receipt2 in", values, "receiptReceipt2");
            return (Criteria) this;
        }

        public Criteria andReceiptReceipt2NotIn(List<String> values) {
            addCriterion("receipt_receipt2 not in", values, "receiptReceipt2");
            return (Criteria) this;
        }

        public Criteria andReceiptReceipt2Between(String value1, String value2) {
            addCriterion("receipt_receipt2 between", value1, value2, "receiptReceipt2");
            return (Criteria) this;
        }

        public Criteria andReceiptReceipt2NotBetween(String value1, String value2) {
            addCriterion("receipt_receipt2 not between", value1, value2, "receiptReceipt2");
            return (Criteria) this;
        }

        public Criteria andReceiptReceipt3IsNull() {
            addCriterion("receipt_receipt3 is null");
            return (Criteria) this;
        }

        public Criteria andReceiptReceipt3IsNotNull() {
            addCriterion("receipt_receipt3 is not null");
            return (Criteria) this;
        }

        public Criteria andReceiptReceipt3EqualTo(String value) {
            addCriterion("receipt_receipt3 =", value, "receiptReceipt3");
            return (Criteria) this;
        }

        public Criteria andReceiptReceipt3NotEqualTo(String value) {
            addCriterion("receipt_receipt3 <>", value, "receiptReceipt3");
            return (Criteria) this;
        }

        public Criteria andReceiptReceipt3GreaterThan(String value) {
            addCriterion("receipt_receipt3 >", value, "receiptReceipt3");
            return (Criteria) this;
        }

        public Criteria andReceiptReceipt3GreaterThanOrEqualTo(String value) {
            addCriterion("receipt_receipt3 >=", value, "receiptReceipt3");
            return (Criteria) this;
        }

        public Criteria andReceiptReceipt3LessThan(String value) {
            addCriterion("receipt_receipt3 <", value, "receiptReceipt3");
            return (Criteria) this;
        }

        public Criteria andReceiptReceipt3LessThanOrEqualTo(String value) {
            addCriterion("receipt_receipt3 <=", value, "receiptReceipt3");
            return (Criteria) this;
        }

        public Criteria andReceiptReceipt3Like(String value) {
            addCriterion("receipt_receipt3 like", value, "receiptReceipt3");
            return (Criteria) this;
        }

        public Criteria andReceiptReceipt3NotLike(String value) {
            addCriterion("receipt_receipt3 not like", value, "receiptReceipt3");
            return (Criteria) this;
        }

        public Criteria andReceiptReceipt3In(List<String> values) {
            addCriterion("receipt_receipt3 in", values, "receiptReceipt3");
            return (Criteria) this;
        }

        public Criteria andReceiptReceipt3NotIn(List<String> values) {
            addCriterion("receipt_receipt3 not in", values, "receiptReceipt3");
            return (Criteria) this;
        }

        public Criteria andReceiptReceipt3Between(String value1, String value2) {
            addCriterion("receipt_receipt3 between", value1, value2, "receiptReceipt3");
            return (Criteria) this;
        }

        public Criteria andReceiptReceipt3NotBetween(String value1, String value2) {
            addCriterion("receipt_receipt3 not between", value1, value2, "receiptReceipt3");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}